<?php
class zhuantiMod extends base {
	public function first(){
		//分页
		$page=new Page();
		$page->pageSuffix=cpConfig::get('URL_HTML_SUFFIX');
		$listRows=10;//每页显示的信息条数
		$cur_page=$page->getCurPage();
		$limit_start=($cur_page-1)*$listRows;
		$limit=$limit_start.','.$listRows;		
		
		$db=model();
		$table=array('member','member_field');
		$where="member.uid=member_field.uid and member.usergroup=2 and member_field.name<>'' and member_field.company<>''";
		//信息总数
		$count = $db->table($table)->where($where)->count();
		//当页信息列表
		$member = $db->table($table)->where($where)->field("member_field.*,member.username")->limit($limit)->select();
		
		//获取行数
		$pagestring = $page->show($url,$count,$listRows,10,1);
		
		$array = array(
		'member'=>$member,
		'pagestring'=>$pagestring
		);
		$this->assign($array);
		
		$this->display();


	}

}